package zut.cs.liziflower.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuwenke
 * @since 2022-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Flower对象", description="")
@TableName("flower")
public class Flower implements Serializable {

    public Flower() {
    }

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "花id")
    @TableId(value = "flowerid", type = IdType.AUTO)
    private Integer flowerid;

    private String name;

    @ApiModelProperty(value = "描述")
    private String describe;

    @ApiModelProperty(value = "保留两位小数")
    private String flowerimage;

    @ApiModelProperty(value = "库存")
    private BigDecimal price;

    private Integer stocknumber;

    @ApiModelProperty(value = "花类型")
    private Integer cateid;

    @ApiModelProperty(value = "花语")
    private String language;

    @TableField(exist = false)
    private Integer userid;//用户id

    @TableField(exist = false)
    private String username;//用户名

    @TableField(exist = false)
    private Integer number;//购物车中的数




}
